migration to 14.0

This commit is contained in:
matthieu.saison
2023-11-30 10:19:22 +01:00
committed by Alexis de Lattre
parent ad8edd00d2
commit 6af447974c
6 changed files with 17 additions and 14 deletions

View File

@@ -1,2 +1 @@
from . import sale
from . import sale_report
from . import models

View File

@@ -4,12 +4,12 @@
{
'name': 'Sale Margin No Onchange',
'version': '12.0.1.0.0',
'category': 'Sales',
'license': 'AGPL-3',
'summary': 'Copy standard price on sale order line and compute margins',
'description': """
"name": "Sale Margin No Onchange",
"version": "14.0.1.0.0",
"category": "Sales",
"license": "AGPL-3",
"summary": "Copy standard price on sale order line and compute margins",
"description": """
This module copies the field *standard_price* of the product on the sale order line when the sale order line is created and then computes the margin of the sale order and the sale order line (in the currency of the quotation, in the currency of the company and the margin rate).
I decided to develop this module as an alternative to the OCA sale margin modules because I wanted a small and simple module. The module *account_invoice_margin*, available in the same Github repository, do the same thing on customer invoices.
@@ -17,9 +17,9 @@ I decided to develop this module as an alternative to the OCA sale margin module
This module has been written by Alexis de Lattre from Akretion
<alexis.delattre@akretion.com>.
""",
'author': 'Akretion',
'website': 'http://www.akretion.com',
'depends': ['sale'],
'data': ['sale_view.xml'],
'installable': False,
"author": "Akretion",
"website": "http://www.akretion.com",
"depends": ["sale"],
"data": ["views/sale_view.xml"],
"installable": True,
}

View File

@@ -0,0 +1,2 @@
from . import sale
from . import sale_report

View File

@@ -20,7 +20,8 @@
groups="account.group_account_user"/>
<field name="company_currency_id" invisible="1"/>
</group>
<xpath expr="//field[@name='order_line']/form//field[@name='analytic_tag_ids']/.." position="after">
<xpath expr="//field[@name='order_line']/form/group/group//field[@name='analytic_tag_ids']/.." position="after">
<group>
<field name="standard_price_sale_currency" groups="base.group_no_one"/>
<field name="standard_price_company_currency" groups="base.group_no_one"/>
<field name="margin_sale_currency" groups="base.group_no_one"/>
@@ -31,6 +32,7 @@
</div>
<field name="company_currency_id" invisible="1"/>
<field name="currency_id" invisible="1"/>
</group>
</xpath>
</field>
</record>