Compare commits

..

No commits in common. "5054666e40619034c2664a6241c762504b0a417f" and "24da82aa410eca5aa9246ac7e75ac8c99308c488" have entirely different histories.

4 changed files with 1 additions and 20 deletions

View File

@ -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
__all__ = ['register'] __all__ = ['register']
@ -7,7 +7,6 @@ __all__ = ['register']
def register(): def register():
Pool.register( Pool.register(
product.Product, product.Product,
invoice.InvoiceLine,
sale.Sale, sale.Sale,
sale.Line, sale.Line,
production.Production, production.Production,

View File

@ -1,16 +0,0 @@
from trytond.pool import Pool, PoolMeta
from trytond.model import ModelView, fields
from trytond.exceptions import UserError
from trytond.pyson import Eval
class InvoiceLine(metaclass=PoolMeta):
__name__ = 'account.invoice.line'
@classmethod
def __setup__(cls):
super(InvoiceLine, cls).__setup__()
cls.product.states['required'] = (Eval('type') == 'line')
cls.unit_price.domain = []

View File

@ -6,7 +6,6 @@ depends:
sale sale
sale_supply_production sale_supply_production
production production
account_invoice
xml: xml:
product.xml product.xml
sale.xml sale.xml

View File

@ -3,7 +3,6 @@
this repository contains the full copyright notices and license terms. --> this repository contains the full copyright notices and license terms. -->
<data> <data>
<xpath expr="//field[@name='reference']" position="after"> <xpath expr="//field[@name='reference']" position="after">
<newline/>
<label name="pizza_number"/> <label name="pizza_number"/>
<field name="pizza_number"/> <field name="pizza_number"/>
<button name="add_pizza"/> <button name="add_pizza"/>