minor fix add field user agent
This commit is contained in:
parent
6efeccec58
commit
914d6ca126
|
@ -8,6 +8,7 @@ from . import production
|
|||
from . import product
|
||||
from . import invoice
|
||||
from . import party
|
||||
from . import agent
|
||||
|
||||
|
||||
def register():
|
||||
|
@ -25,6 +26,7 @@ def register():
|
|||
product.Product,
|
||||
invoice.InvoiceLine,
|
||||
party.Party,
|
||||
agent.Agent,
|
||||
module='sale_pos_frontend_rest', type_='model')
|
||||
Pool.register(
|
||||
sale.SaleForceDraft,
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
from __future__ import unicode_literals
|
||||
from decimal import Decimal
|
||||
from trytond.pool import PoolMeta
|
||||
from trytond.model import fields, ModelSQL
|
||||
|
||||
|
||||
class Agent(metaclass=PoolMeta):
|
||||
__name__ = 'commission.agent'
|
||||
user = fields.Many2One('res.user', 'user')
|
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0"?>
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<tryton>
|
||||
<data>
|
||||
<record model="ir.ui.view" id="agent_view_form">
|
||||
<field name="model">commission.agent</field>
|
||||
<field name="inherit" ref="commission.agent_view_form"/>
|
||||
<field name="name">agent_form</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</tryton>
|
|
@ -11,3 +11,4 @@ xml:
|
|||
restaurant.xml
|
||||
sale.xml
|
||||
product.xml
|
||||
agent.xml
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0"?>
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<data>
|
||||
<xpath expr="/form/field[@name='plan']" position="after">
|
||||
<label name="user"/>
|
||||
<field name="user"/>
|
||||
</xpath>
|
||||
</data>
|
Loading…
Reference in New Issue