i tried to set a price list and a tax_rule for a party but i did not succeed.
i search the proteus-demo but found nothing
i tried to copy the same way as address or contact mechanism or category or identifiers but nothing worked
I think it would be easier if we try to solve one issue at a time.
For me it is a better approach to define what the end is, and then ask how to get there.
For example: When I do a sale to party1, I want price_list1 to be used for computing the prices.
In this case you need sale_price_list module installed and activated.
sale_price_list module will add sale_price_list field to Party Model where you can set the price_list for Party, in this example price_list1 for party1.
Now when you create a sale, price_list1 will be the default price_list used for the Sale.
The Sale model field is price_list.
When you create a sale for party1, do you get the Sale with price_list1 you specified on party1?
Please do try to inform us exactly what failed, then we can try to figure out what went wrong, but a simple did not succeed is not very helpful.
I find Administration/Models very useful to browse the models/fields in the database.
party.sale_price_lists.append(Preduc(name=args.reduc,company=2))
File "/usr/lib/python3/dist-packages/proteus/__init__.py", line 579, in append
self.__check([record])
File "/usr/lib/python3/dist-packages/proteus/__init__.py", line 555, in __check
assert record.__class__.__name__ == self.model_name
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError
no need to apoligize i understand that some times i am not really clear.
the problem was to assign the price list…
seems so simple. i’ll look what i’ve done. it is not really clear for me