Add field Waiter in res.user and transate
This commit is contained in:
parent
94279af9b8
commit
2bf689ef87
@ -1,5 +1,5 @@
|
|||||||
from trytond.pool import Pool
|
from trytond.pool import Pool
|
||||||
from . import product, sale, production, invoice
|
from . import product, sale, production, invoice, user
|
||||||
|
|
||||||
__all__ = ['register']
|
__all__ = ['register']
|
||||||
|
|
||||||
@ -10,6 +10,7 @@ def register():
|
|||||||
invoice.InvoiceLine,
|
invoice.InvoiceLine,
|
||||||
sale.Sale,
|
sale.Sale,
|
||||||
sale.Line,
|
sale.Line,
|
||||||
|
user.User,
|
||||||
production.Production,
|
production.Production,
|
||||||
module='sale_fast_food', type_='model')
|
module='sale_fast_food', type_='model')
|
||||||
Pool.register(
|
Pool.register(
|
||||||
|
@ -41,3 +41,7 @@ msgstr "Subtotal"
|
|||||||
msgctxt "field:sale.sale,total_discount:"
|
msgctxt "field:sale.sale,total_discount:"
|
||||||
msgid "Total Discount"
|
msgid "Total Discount"
|
||||||
msgstr "Total Descuento"
|
msgstr "Total Descuento"
|
||||||
|
|
||||||
|
msgctxt "field:res.user,waiter:"
|
||||||
|
msgid "Waiter"
|
||||||
|
msgstr "Mesero"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
version=6.4
|
version=6.4
|
||||||
depends:
|
depends:
|
||||||
ir
|
ir
|
||||||
|
res
|
||||||
product
|
product
|
||||||
sale
|
sale
|
||||||
sale_supply_production
|
sale_supply_production
|
||||||
@ -11,3 +12,4 @@ depends:
|
|||||||
xml:
|
xml:
|
||||||
product.xml
|
product.xml
|
||||||
sale.xml
|
sale.xml
|
||||||
|
user.xml
|
||||||
|
8
user.py
Normal file
8
user.py
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
from trytond.model import fields
|
||||||
|
from trytond.pool import Pool, PoolMeta
|
||||||
|
|
||||||
|
class User(metaclass=PoolMeta):
|
||||||
|
"User"
|
||||||
|
__name__ = 'res.user'
|
||||||
|
|
||||||
|
waiter = fields.Boolean('Waiter')
|
13
user.xml
Normal file
13
user.xml
Normal file
@ -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="user_view_form" >
|
||||||
|
<field name="name">user_form</field>
|
||||||
|
<field name="inherit" ref="res.user_view_form"/>
|
||||||
|
<field name="model">res.user</field>
|
||||||
|
</record>
|
||||||
|
</data>
|
||||||
|
</tryton>
|
9
view/user_form.xml
Normal file
9
view/user_form.xml
Normal file
@ -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="//field[@name='name']" position="after">
|
||||||
|
<label name="waiter"/>
|
||||||
|
<field name="waiter"/>
|
||||||
|
</xpath>
|
||||||
|
</data>
|
Loading…
Reference in New Issue
Block a user