Remove the creation of the intercompany_user field in company model
becasue is done in the company_user module. And add the depenendency to this module.
This commit is contained in:
parent
1f266198fe
commit
f9ad4f5ba2
|
@ -7,6 +7,5 @@ from . import sale
|
|||
def register():
|
||||
Pool.register(
|
||||
purchase.Purchase,
|
||||
purchase.Company,
|
||||
sale.SaleLine,
|
||||
module='intercompany_create_sales_from_purchase', type_='model')
|
||||
|
|
|
@ -14,15 +14,6 @@ msgstr ""
|
|||
"La compra \"%s\" ha d'assignar-se a una adreça de lliurament o a un magatzem amb "
|
||||
"una adreça assignada."
|
||||
|
||||
msgctxt "field:company.company,intercompany_user:"
|
||||
msgid "Company User"
|
||||
msgstr "Usuari empresa"
|
||||
|
||||
msgctxt "field:sale.line,purchase_line:"
|
||||
msgid "Purchase Line"
|
||||
msgstr "Linia compra"
|
||||
|
||||
msgctxt "help:company.company,intercompany_user:"
|
||||
msgid "User with company rules when create a intercompany sale from purchases."
|
||||
msgstr ""
|
||||
"Usuari amb regles de l'empresa per crear la venta entre empreses desde compras."
|
||||
|
|
|
@ -14,15 +14,6 @@ msgstr ""
|
|||
"La compra \"%s\" debe asignarse a una dirección de entrega o a un almacén con "
|
||||
"una dirección asignada."
|
||||
|
||||
msgctxt "field:company.company,intercompany_user:"
|
||||
msgid "Company User"
|
||||
msgstr "Usuario empresa"
|
||||
|
||||
msgctxt "field:sale.line,purchase_line:"
|
||||
msgid "Purchase Line"
|
||||
msgstr "Línea compra"
|
||||
|
||||
msgctxt "help:company.company,intercompany_user:"
|
||||
msgid "User with company rules when create a intercompany sale from purchases."
|
||||
msgstr ""
|
||||
"Usuario con reglas de la empresa para crear la venta entre empresas desde compras."
|
||||
|
|
|
@ -7,15 +7,6 @@ from trytond.i18n import gettext
|
|||
from trytond.exceptions import UserError
|
||||
from trytond.modules.product import round_price
|
||||
|
||||
__all__ = ['Company', 'Purchase']
|
||||
|
||||
|
||||
class Company(metaclass=PoolMeta):
|
||||
__name__ = 'company.company'
|
||||
intercompany_user = fields.Many2One('res.user', 'Company User',
|
||||
help='User with company rules when create a intercompany sale '
|
||||
'from purchases.')
|
||||
|
||||
|
||||
class Purchase(metaclass=PoolMeta):
|
||||
__name__ = 'purchase.purchase'
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
[tryton]
|
||||
version=6.9.0
|
||||
depends:
|
||||
company_user
|
||||
purchase
|
||||
sale
|
||||
extras_depend:
|
||||
|
|
Loading…
Reference in New Issue