Skip to content

Commit

Permalink
[16.0][ADD] sale_blanket_order_line_editable: Blanket order lines rea…
Browse files Browse the repository at this point in the history
…d only where state in "Done" or "Expired".
  • Loading branch information
alfredoavanzosc authored and anajuaristi committed Sep 27, 2024
1 parent 6396d5b commit 9383393
Show file tree
Hide file tree
Showing 11 changed files with 141 additions and 0 deletions.
27 changes: 27 additions & 0 deletions sale_blanket_order_line_editable/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3

================================
Sale blanket order line editable
================================

* Blanket order lines read only where state in "Done" or "Expired".

Bug Tracker
===========

Bugs are tracked on `GitHub Issues
<https://github.com/avanzosc/sale-addons/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smash it by providing detailed and welcomed feedback.

Credits
=======

Contributors
------------
* Ana Juaristi <[email protected]>
* Alfredo de la Fuente <[email protected]>

Do not contact contributors directly about support or help with technical issues.
Empty file.
18 changes: 18 additions & 0 deletions sale_blanket_order_line_editable/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2024 Alfredo de la Fuente - AvanzOSC
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Sale blanket Order Line Editable",
"version": "16.0.1.0.0",
"category": "Sale",
"license": "AGPL-3",
"author": "AvanzOSC",
"website": "https://github.com/avanzosc/sale-addons",
"depends": [
"sale_blanket_order",
],
"data": [
"views/sale_blanket_order_views.xml",
],
"installable": True,
"auto_install": True,
}
15 changes: 15 additions & 0 deletions sale_blanket_order_line_editable/i18n/ca_ES.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-09-23 07:43+0000\n"
"PO-Revision-Date: 2024-09-23 07:43+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
15 changes: 15 additions & 0 deletions sale_blanket_order_line_editable/i18n/en_GB.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-09-23 07:43+0000\n"
"PO-Revision-Date: 2024-09-23 07:43+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
15 changes: 15 additions & 0 deletions sale_blanket_order_line_editable/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-09-23 07:44+0000\n"
"PO-Revision-Date: 2024-09-23 07:44+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
15 changes: 15 additions & 0 deletions sale_blanket_order_line_editable/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-09-23 07:44+0000\n"
"PO-Revision-Date: 2024-09-23 07:44+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-09-23 07:42+0000\n"
"PO-Revision-Date: 2024-09-23 07:42+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="view_blanket_order_form" model="ir.ui.view">
<field name="model">sale.blanket.order</field>
<field name="inherit_id" ref="sale_blanket_order.view_blanket_order_form" />
<field name="arch" type="xml">
<field name="line_ids" position="attributes">
<attribute
name="attrs"
>{'readonly': [('state', 'in', ('done','expired'))]}</attribute>
</field>
</field>
</record>
</odoo>
6 changes: 6 additions & 0 deletions setup/sale_blanket_order_line_editable/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

0 comments on commit 9383393

Please sign in to comment.