squashed commit

This commit is contained in:
hoangvv
2026-09-18 13:55:25 +07:00
commit 039c98d4d0
45882 changed files with 24235585 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
from . import models
+13
View File
@@ -0,0 +1,13 @@
{
'name': "Add Partner GLN",
'summary': "This module adds the Global Location Number to the partner. Used on delivery addresses, it is used to identify stock locations and is mandatory on the UBL/CII eInvoices (but not only). The module is intended be merged with account, later on, in master",
'category': 'Accounting/Accounting',
'version': '1.0',
'depends': ['account'],
'installable': True,
'auto_install': True,
'data': [
'views/res_partner_views.xml',
],
'license': 'LGPL-3',
}
@@ -0,0 +1 @@
from . import res_partner
@@ -0,0 +1,7 @@
from odoo import fields, models
class ResPartner(models.Model):
_inherit = 'res.partner'
global_location_number = fields.Char(string="GLN", help="Global Location Number")
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="account_add_gln.view_partner_form_inherit" model="ir.ui.view">
<field name="name">res.partner.form.inherit.account_peppol_partner_extra_fields</field>
<field name="model">res.partner</field>
<field name="priority">15</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<xpath expr=".//page[@name='sales_purchases']//group[@name='misc']" position="inside">
<field name="global_location_number" invisible="type != 'delivery'"/>
</xpath>
<xpath expr=".//page[@name='contact_addresses']/field[@name='child_ids']/form//field[@name='mobile']" position="after">
<field name="global_location_number" invisible="type != 'delivery'"/>
</xpath>
</field>
</record>
</odoo>